package flca.voicenav.model;

import android.os.Bundle;


public class VoiceNavData
{
	private static GpxRoute gpxRoute;
	private static boolean endClicked = false;
	private static boolean startClicked = false;
	private static String infoMsg = "info";
	
	
	public static GpxRoute getGpxRoute()
	{
		return gpxRoute;
	}
	public static void setGpxRoute(GpxRoute gpxRoute)
	{
		VoiceNavData.gpxRoute = gpxRoute;
	}
	public static boolean isEndClicked()
	{
		return endClicked;
	}
	public static void setEndClicked(boolean endClicked)
	{
		VoiceNavData.endClicked = endClicked;
	}
	public static boolean isStartClicked()
	{
		return startClicked;
	}
	public static void setStartClicked(boolean startClicked)
	{
		VoiceNavData.startClicked = startClicked;
	}
	public static String getInfoMsg()
	{
		return infoMsg;
	}
	public static void setInfoMsg(String infoMsg)
	{
		VoiceNavData.infoMsg = infoMsg;
	}
	
	//---- 
	public static void saveState(Bundle savedInstanceState) 
	{
		savedInstanceState.putBoolean("startClicked", startClicked);
		savedInstanceState.putBoolean("endClicked", endClicked);
		savedInstanceState.putString("infoMsg", infoMsg);
	}

	public static void restoreState(Bundle savedInstanceState) 
	{
		startClicked = savedInstanceState.getBoolean("startClicked" );
		endClicked = savedInstanceState.getBoolean("endClicked");
		infoMsg = savedInstanceState.getString("infoMsg");
	}

}
